package com.lichuang.fruitvarietysm.goods.controller;


import com.lichuang.fruitvarietysm.goods.service.impl.GoodsCollectionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-05
 */
@RestController
@RequestMapping("//goods-collection")
public class GoodsCollectionController {

    @Autowired
    GoodsCollectionServiceImpl collectionService;

    //查找商品的人气值，即收藏值
    @RequestMapping("/sCountCollection")
    public int sCountCollection(Integer goods_id){
      return  collectionService.sCountCollection(goods_id);
    }
}
